const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name: {
        type: String
    },
    nid: {
        type: String
    },
    superior: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Department'
    }
})

module.exports = mongoose.model('Specialty', schema)